package com.aorise.mapper.diagnosis;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.dao.DataAccessException;
import org.springframework.stereotype.Component;

import com.aorise.model.diagnosis.*;

/**
* @Author:cat
* @Description 诊断任务mybatis接口类
* @Date:Created in 2019-06-24
* @Modified By:
*/
@Mapper
@Component(value = "diagnosisReportMapper")
public interface DiagnosisReportMapper {

    /**
     * @Author:cat
     * @Description 查询诊断报告信息总条数
     * @params: map 查询条件Map
     * @Date:2019-06-26
     * @Return: Long 数据总条数
     * @Modified By:
     */
    Long getAllDiagnosisReportListTotalByPage(Map<String, Object> map) throws DataAccessException;

    /**
     * @Author:cat
     * @Description 分页查询诊断报告信息
     * @params: map 查询条件Map
     * @Date:2019-06-26
     * @Return: List<DiagnosisReportModel> 诊断报告集合
     * @Modified By:
     */
    List<DiagnosisReportModel> getAllDiagnosisReportListByPage(Map<String, Object> map) throws DataAccessException;

    /**
     * @Author:cat
     * @Description 根据ID查询诊断报告详情
     * @params: map 查询条件Map
     * @Date:2019-06-26
     * @Return: DiagnosisReportModel 诊断报告信息
     * @Modified By:
     */
    DiagnosisReportModel getDiagnosisReportById(Map<String, Object> map) throws DataAccessException;

    /**
     * @Author:cat
     * @Description 导出诊断报告信息
     * @params: map 查询条件Map
     * @Date:2019-06-26
     * @Return: List<DiagnosisReportModel> 诊断报告集合
     * @Modified By:
     */
    List<DiagnosisReportModel> exportDiagnosisReport(Map<String, Object> map) throws DataAccessException;

    /**
     * @Author:cat
     * @Description 新增诊断报告信息
     * @params: diagnosisReportModel 诊断报告信息
     * @Date:2019-06-26
     * @Return: Integer 影响行数
     * @Modified By:
     */
    Integer addDiagnosisReport(DiagnosisReportModel diagnosisReportModel) throws DataAccessException;


}